<?php

namespace app\common\helper;

use PayPal\Auth\OAuthTokenCredential;
use PayPal\Rest\ApiContext;

class Paypal
{
    const clientId = 'AY00-3BpkJFLngt5MFQBcSpWuJZXHZqSqTEKZVpWDicsvPRDnJYGSk--92FkMXoDf7OXg5RanqeejXaz';
    const secret = 'EJ1bOAzIxV2ynaPY8Nvk796uY2fEnnNGL5813rxPIo8zo52B1-WlHeilJDsLsWp-xljmykR2wkWoxiss';
    const Currency = 'USD';
    protected $Paypal;
    public function __construct() {
        $this->Paypal = new ApiContext(
            new OAuthTokenCredential(
                self::clientId,
                self::secret
            )
        );

//        $this->Paypal->setConfig([
//            'mode' => 'live'
//        ]);
    }



}